<template>
  <div class="box" @click="A">
    <a href="javascript:;" class="framer">创作者中心</a>
  </div>
</template>

<script>
import { useStore } from "vuex";
export default {
  name: "NavFramer",
  setup() {
    const store = useStore();
    function A() {
      store.commit("floorBoxShow/showEnter", true);
    }
    return {
      A,
    };
  },
};
</script>

<style scoped lang="less">
.box {
  float: right;
  padding-left: 10px;
  width: 90px;
  height: 70px;
}
.framer {
  float: left;
  position: relative;
  top: 19px;
  width: 100%;
  height: 30px;
  border: 1px solid #4f4f4f;
  border-radius: 20px;
  text-align: center;
  line-height: 32px;
  color: #ccc;
  &:hover {
    color: #fff;
    border-color: #fff;
  }
}
</style>
